package zsh.aop;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAspect {
    @Pointcut("execution(zsh.domain.Student zsh.service.IService.selectByID(int))")
    public void pt(){

    }
    @Before("pt()")
    public void before() {
        System.out.println("毫秒数"+System.currentTimeMillis());
    }
}
